package microcredit.model.domain;

public enum LoanStatus {

	/**
	 * Pending
	 */
	A,
	/**
	 * Paid
	 */
	F,
	
	/**
	 * Security pending
	 */
	R,
	
	/**
	 * Security paid
	 */
	K,
	
	/**
	 * Cancelled not repaid.
	 * Only possible if dead.
	 */
	N;
	
	public String getString() {
		switch (this) {
		case A : return "Pending";
		case F : return "Paid";
		case R : return "Security pending";
		case K : return "Security paid";
		case N : return "Cancelled not repaid (dead)";
		}
		return "";
	}
	
}
